/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Boundary;




/**
 *
 * @author ItsPlaces
 */
public class login extends boundary {
    private String username;     
    private String password;    
      
    public login(){
       super();
       setTemplate("/WEB-INF/LoginForm.jsp");  

    }
    
        

   
    protected void process() {
         setUsername(getRequest().getParameter("username"));
         setPassword(getRequest().getParameter("passwd")); 
        
      if("admin".equals(getUsername()) && "admin".equals(getPassword())){
      setTemplate("/WEB-INF/adminpage.jsp");          
      }
       
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }
    
    
    
    
   

}
